
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.rmi.RemoteException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author marduke
 */


public class NodosImpl extends java.rmi.server.UnicastRemoteObject implements Nodos{

    Vector Vecinos;
    String Visitados;

    public NodosImpl() 	throws java.rmi.RemoteException {
        Vecinos = new Vector();
        Visitados = "Yo";
    }

    public String Alcanzables(Vector Vecinos, String Visitados) throws RemoteException {

       String retorno = "Error";
int i = 0;
       try{
        InetAddress addr = InetAddress.getLocalHost();
        retorno = addr.getHostAddress();
        while(i < 1000000) {
            System.out.println("y");
            i++;
        }
       } catch (Exception e) {
        System.out.println(e);
       }


       
        return this.Visitados;

    }
    
    

}
